-- GENERATED SPELL FOR [Snowfall Glade Shaman] --


function spell0_26201(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26201', 8284, 1)
end

function spell1_26201(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_26201', 3000, 1)
end

function spell2_26201(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26201', 0, 1)
end

function Sorts_26201(pUnit, Event)
local choix_sorts_26201 = math.random(0, 2)
if choix_sorts_26201 == 0 then
pUnit:RegisterEvent('spell0_26201', 1, 1)
end
if choix_sorts_26201 == 1 then
pUnit:RegisterEvent('spell1_26201', 1, 1)
end
if choix_sorts_26201 == 2 then
pUnit:RegisterEvent('spell2_26201', 1, 1)
end
end

function mob26201_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26201', math.random(1500, 3000), 1)
end

function mob26201_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26201_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26201_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26201, 1, 'mob26201_Action')
RegisterUnitEvent(26201, 2, 'mob26201_Leave')
RegisterUnitEvent(26201, 3, 'mob26201_Kill')
RegisterUnitEvent(26201, 4, 'mob26201_Die')
